package com.wu.dao.weixin.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wu.entity.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
@Schema(description = "用户")
public class WeixinNewsTemplateVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private String id;

    @Schema(description = "模板名称", required = true)
    @NotBlank(message = "模板名称不能为空")
    private String templateName;

    @Schema(description = "模板类型", required = true)
    @NotBlank(message = "模板类型不能为空")
    private String templateType;

    @Range(min = 0, max = 5, message = "上传状态")
    private int uploadType;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

    @Schema(description = "图文素材媒体id")
    private String mediaId;
    /**
     *公众号原始id
     */
    private String jwid;
    /**
     *创建人名称
     */
    private String createBy;
    /**
     *上传时间
     */
    @Schema(description = "上传时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date uploadTime;
    /**
     *修改人名称
     */
    private String updateBy;
    /**
     *修改人名称
     */
    @Schema(description = "更新时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateTime;

}